Image recording apparatus and method therefor

ABSTRACT

An apparatus includes a communication unit for receiving image data and an external Centronics connector for inputting character code data from an external device. A facsimile MPU is provided for setting an image recording parameter based on the image data and a character recording parameter based on the character code data. A printing head is provided for recording an image based on the image data in accordance with the image recording parameter and a character based on the character code data in accordance with the character recording parameter.

This application is a continuation of application Ser. No. 08/409,818 filed Mar. 24, 1995, now abandoned.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to an image recording apparatus which records an image, characters, and the like based on image data received through a public line or the like and character code data output from a personal computer or the like, and a method therefor.

2. Related Background Art

A conventional facsimile apparatus comprising a facsimile (FAX) unit and a printer unit has the following arrangement (FIG. 39).

The FAX unit comprises an MPU 101 for controlling the operation of the entire FAX unit, a ROM 102 for storing control programs to be executed by the MPU 101, a RAM 103 used as a work area for the MPU 101 and an area for storing an image, a communication unit 104 for transmitting/receiving data, and an image reader 105 for reading an image.

The printer unit comprises an MPU 201 for controlling the operation of the entire printer unit, a ROM 202 for storing control programs to be executed by the MPU 201, a RAM 203 used as an area for storing data to be printed supplied from the FAX unit, a work area for the MPU 201, and the like, and a printing head 205 for printing an image.

Furthermore, a signal line 301 for exchanging data between the FAX unit and the printer unit is arranged.

In the facsimile apparatus having such an arrangement, a communication unit 104 in the FAX unit receives image data transmitted from a remote FAX transmitter, and supplies the received image data to the printer unit. Then, the received image is recorded by using a printing head 205.

In recent years, a system of utilizing the printer unit in a free state as a printer for an external device such as a personal computer or a wordprocessor while the facsimile apparatus does not operate has been proposed.

However, when the facsimile apparatus comprising the printer unit and the FAX unit is to be used as the output terminal of an external device, the following problems have arisen.

An external device and the FAX apparatus generally use different command systems, emulation modes, character fonts, and the like. For this reason, the printer unit cannot be used as the output terminal of an external device by merely connecting the printer unit to the external device.

That is, when the printer unit of the facsimile is merely connected to an external device through an external Centronics connector, and is operated as an output terminal of the external device after operation of the facsimile, the printer unit operates using an emulation mode, a character font, and the like set for the facsimile without changing the printer unit to printer setting for the external device, resulting in an operation error. The same operation error occurs when the printer unit is used as the facsimile after used as a printer for an external device.

In order to prevent such an operation error of the printer unit, a user changes printer setting every time printer unit is used and switched between an output terminal for an image received by the facsimile and the output terminal of an external device, resulting in a complicated operation.

Furthermore, any selection operation must be executed to set the printer unit of the facsimile to an output terminal for an image received by the facsimile, or the output terminal of an external device. If, however, this selection operation is always allowed unconditionally, a disadvantage may occur, e.g., a recording operation for an image received by the facsimile may be interrupted by switching the printer unit to the output terminal of the external device, or image recording from the output terminal of the external device may be wasted due to an abnormal recording operation.

SUMMARY OF THE INVENTION

The present invention has been made in consideration of the above situation, and has as its object to provide an improved image recording apparatus and method.

The present invention has another object to reliably record an image and a character in accordance with parameters suitable for respective recording operations in an image recording apparatus capable of recording an image and a character based on received image data and input code data.

The present invention has still another object to properly execute a switching operation between an image recording mode and a character recording mode.

The present invention provides an image recording apparatus comprising: reception means for receiving image data; input means for inputting character code data from an external device; setting means for setting an image recording parameter based on the image data, and a character recording parameter based on the character code data; and recording means for recording an image based on the image data in accordance with the image recording parameter, and a character based on the character code data in accordance with the character recording parameter.

The present invention also provides an image recording apparatus comprising: reception means for receiving image data; input means for inputting character code data from an external device; instruction means for instructing an image recording mode based on the image data, and a character recording mode based on the character code data; recording means for recording an image based on the image data in accordance with instruction of the image recording mode, and a character based on the character code data in accordance with instruction of the character recording mode; detection means for detecting a state of the recording means; and control means for determining the instruction of the character recording mode by the instruction means as valid or invalid in accordance with the detected state by the detection means.

The above and other objects of the present invention will become apparent from the following detailed description taken in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram showing the arrangement of a facsimile apparatus to which the present invention is applied;

FIG. 2 is a diagram for explaining signal lines between a facsimile unit and a printer unit in the facsimile apparatus shown in FIG. 1;

FIG. 3 is a sectional view showing the arrangement of the facsimile apparatus shown in FIG. 1;

FIG. 4 is a sectional view of the facsimile apparatus in a state wherein original sheets are set;

FIG. 5 is a sectional view of the facsimile apparatus in a stand-up state;

FIG. 6 is a view showing a recording paper feed system of the facsimile apparatus;

FIG. 7 is a flow chart for explaining the power-ON operation of the facsimile unit;

FIG. 8 is a flow chart for explaining the initialization operation executed in a power-ON state of the printer unit;

FIG. 9 is a flow chart for explaining the initialization operation executed in a soft power-ON state of the printer unit;

FIGS. 10A to 10C are flow charts for explaining the operation in a standby state of the facsimile unit;

FIG. 11 is a flow chart for explaining the operation in a standby state in the printer unit;

FIG. 12 is comprised of FIGS. 12A and 12B showing flow charts for explaining the single copy operation;

FIG. 13 is a flow chart for explaining the multi-copy operation;

FIG. 14 is a flow chart for explaining the original read task;

FIG. 15 is a flow chart for explaining the record task;

FIG. 16 is a flow chart for explaining the received image output operation;

FIG. 17 is comprised of FIGS. 17A and 17B showing flow charts for explaining the record task;

FIG. 18 is a flow chart for explaining the normal report output operation;

FIG. 19 is a flow chart for explaining the untransmitted image report output operation;

FIG. 20 is a flow chart showing the transfer sequence to a printer mode;

FIG. 21 is a flow chart showing the return sequence to a facsimile mode;

FIG. 22 is a flow chart showing the timer interrupt process of the facsimile unit;

FIG. 23 is a flow chart showing the periodic task process of the facsimile unit;

FIG. 24 is a flow chart showing the soft power-ON process in the facsimile mode;

FIG. 25 is a flow chart showing the soft power-ON process in the printer mode;

FIG. 26 is a flow chart showing the soft power-OFF processing;

FIG. 27 is a flow chart showing the compulsive soft power-OFF process sequence;

FIG. 28 is a flow chart showing the soft power supply handler process sequence;

FIG. 29 is a flow chart showing the soft power-OFF processing;

FIG. 30 is a flow chart showing the compulsive soft power-OFF sequence;

FIG. 31 is a flow chart showing the recording paper feed process sequence;

FIG. 32 is a flow chart showing the recording paper discharge process sequence;

FIG. 33 is a flow chart showing the printer setting process sequence;

FIG. 34 is a flow chart showing the interrupt recording paper process sequence;

FIGS. 35A and 35B are flow charts showing the remaining ink amount detect process sequence;

FIG. 36 is a flow chart for explaining the operation of the facsimile unit associated with the remaining ink amount detect process;

FIG. 37 is a flow chart for explaining the operation of the printer unit associated with the remaining ink amount detect process;

FIG. 38 is comprised of FIGS. 38A and 38B showing flow charts for explaining the footer detection operation for remaining ink amount detection; and

FIG. 39 is a block diagram showing the arrangement of a conventional facsimile apparatus.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

The present invention will be described in detail hereinafter with reference to its preferred embodiments.

(First Embodiment)

FIG. 3 is a sectional view showing the arrangement of a facsimile (FAX) apparatus to which the present invention is applied.

On an original tray 305, an original sheet to be FAX-transmitted or copied is placed with its image surface facing down. An actuator 301 is started by an original sheet, and sets an original detection sensor 110 comprising a reflection type sensor in an inactive state when no original sheet is set. The center of gravity of the actuator 301 is set so as to set the original detection sensor 110 in an inactive state when the FAX apparatus is placed, as shown in FIG. 3.

A roller 304 is used for feeding an original sheet to a read position, and feed rollers 306, 307, and 308 are used for feeding an original sheet on a reader 309 having a contact sensor at a proper speed.

A paper cassette 310 stores a plurality of cut sheets (recording paper sheets) of a predetermined size. The recording paper sheets stored in the paper cassette 310 are picked up one by one upon operation of a pickup roller 313, and the picked-up sheet is fed to the position of a recording paper tail edge sensor (PE sensor) 206 by recording paper feed rollers 311.

The recording paper sheet fed to the position of the PE sensor 206 is further fed on the recording position by the rollers 311 and rollers 303 and 312.

A recording head 205 is used for performing ink-jet recording. The recording head 205 is repetitively moved in the main scanning direction (a direction perpendicular to the plane of the drawing of FIG. 3) by a scanning mechanism (carriage; not shown), thus sequentially recording an image on the recording paper sheet. The recording head 205 of this embodiment is of a type for ejecting ink droplets from ejection orifices by causing a change in state in an ink using heat energy. The recording head 205 has 64 nozzles in the sub-scanning direction, and can record an image at a resolution of 360 dpi.

The PE (recording paper tail edge) sensor 206 is used for detecting the leading and tail edges of the fed recording paper sheet. A footer sensor 207 is used for detecting a footer recorded on the recording paper sheet.

The pickup roller 313 for picking up a recording paper sheet from the cassette 310 is driven by a motor for driving the rollers 304 and 306 to 308 which are used for feeding an original sheet.

A recovery system unit 314 comprises a cap member for capping the ejection orifices of the recording head 205, a suction pump, and the like. In an auto-recovery or manual recovery mode, the recovery system unit 314 starts the suction pump while the ejection orifices of the recording head 205 are capped by the cap member, thereby discharging an ink from the ejection orifices.

The discharged ink is guided to a discharged ink tank 315.

FIG. 6 is a view showing the arrangement of a recording paper feed system.

A recording paper sheet fed from the cassette 310 by the pickup roller 313 is fed by the feed rollers 311, and after the leading edge of the recording paper sheet is detected by the PE sensor 206, the recording paper sheet is fed by a predetermined amount to be set at the record position of the recording head 205. The recording head 205 performs main scanning to record a band having a recording width corresponding to 64 nozzles. Upon completion of the main scanning, the recording paper sheet is fed by a distance corresponding to the recording width to achieve sub-scanning. By repeating the main scanning and the sub-scanning a plurality of number of times, an image for one page is recorded. After the image for one page is recorded, a footer mark for detecting the presence/absence of an ink is recorded on the tail edge portion of the recording paper sheet, and is detected by the footer sensor 207. Thereafter, the presence/absence of the ink is discriminated in accordance with the detection result of the sensor 207.

FIG. 1 is a block diagram showing the arrangement of the FAX apparatus to which the present invention is applied. The FAX apparatus of this embodiment comprises a FAX unit 1 on the left side of a dotted line, and a printer unit 2 on the right side thereof.

The FAX unit 1 executes various functions of the FAX operations such as a facsimile communication, image reading, image memory management, user registration, and the like, except for an image recording operation. The printer unit 2 executes recording operations of a copy image, received image, and externally input image.

The FAX unit 1 comprises the following components. A FAX MPU 101 is used for controlling the operations of the FAX unit 1. A ROM 102 stores program codes, initial value data, table data, TTi font data, and the like. The TTi font data stored in the ROM 102 are those used for transmission source information to be added to image data upon transmission of image data, and have characters such as numerals, English letters, katakana characters, symbols, and the like.

A RAM 103 is allocated with an image storage buffer, read line buffers, record line buffers, a user registration data area, a work area, and the like. The image storage buffer is a buffer for storing received image data or non-printed image data, and is also called an image memory. The read line buffers include line buffers having a total capacity corresponding to four lines of raw image data after reading (216 bytes×4 lines), and the record line buffers include line buffers having a total capacity corresponding to four lines of raw image data (including commands) before recording (400 bytes×4 lines).

A communication unit 104 comprises an image communication modem, an NCU, and the like.

A reader 105 comprises a contact sensor for reading an image, an image process LSI for executing an image process of a read image, and the like, and performs read control.

A converter 106 is used for converting image data in a run length (RL) format software-decoded by the FAX MPU 101 into raw image (RAW) data.

A resolution converter 107 is used for converting raw image data having a resolution, in the main scanning direction, of 8 pel/mm on the side of the FAX unit 1 into raw image data having a resolution, in the main scanning direction, of 360 dpi (dots per inch) on the side of the printer unit 2.

A select switch 108 is used for selecting data to be transferred to the printer unit via a Centronics interface and, more specifically, a Centronics output select switch which performs a select operation in accordance with an instruction from the FAX MPU 101, i.e., depending on a FAX mode in which the printer unit operates as a recording system of the FAX unit 1 or a printer mode in which the printer unit operates as a printer of an external device such as a wordprocessor, a personal computer, or the like.

An external Centronics connector 109 complies with the Centronics standards, and is used for connecting an external device in the printer mode.

An original sheet sensor 110 detects an original sheet, a motor 111 is used for picking up an original sheet or a recording paper sheet, and an operational panel 112 includes a keyboard having a copy key, a printer key, and the like.

The arrangement of the printer unit 2 will be explained below.

The printer unit 2 has the following arrangement.

A printer MPU 201 is used for controlling the operations of the printer unit 2. A ROM 202 stores program codes, initial value data, table data, various font data, and the like. A RAM 203 is allocated with a reception buffer, a raster buffer, a text buffer, a print buffer, a footer buffer, a work area, and the like. The reception buffer is a buffer for temporarily holding received data since the Centronics output select switch 108 of the FAX unit 1 transfers data at high speed. The raster buffer is a buffer used when the printer MPU analyzes data in the reception buffer in units of bytes to extract only print data. The text buffer is a buffer used when the printer MPU analyzes data in the reception buffer in units of bytes to extract only character codes. The print buffer is a print data buffer used immediately before a print operation, and has areas having a capacity for two scans (360 bytes×64 nozzles×2 scans), which areas are alternately used. The footer buffer is a character code buffer used for printing footer characters.

A length/width converter 204 is used for storing print data in the raster buffer of the width format into the print buffer of the length format, and the printing (recording) head 205 ejects an ink by a heater driver.

The above-mentioned PE (recording paper tail edge detection) sensor 206 detects the leading and tail edges of a recording paper sheet.

The footer sensor 207 comprises an LED light source for footer detection, and a light-receiving element for detecting light reflected by a footer mark. The footer sensor is a sensor used for detecting the remaining ink amount in an ink cartridge, and detects whether or not a predetermined pattern (footer mark) is printed at a predetermined position on a recording paper sheet.

A motor 208 is used for feeding a recording paper sheet.

Interfaces between the FAX unit 1 and the printer unit 2 will be explained below.

A signal line 301 connects the MPU 101 of the FAX unit and the MPU 201 of the printer unit, and will be described in detail later.

A Centronics interface (I/F) 302 connects the Centronics output select switch 108 and the RAM 203, and transfers, from the FAX unit 1, control commands, image data, and character code data in accordance with a general command system and a FAX command system. The Centronics output select switch 108 is connected to the external Centronics connector 109, and is connected, via the external Centronics connector 109, to an external device (not shown) such as a personal computer. With this arrangement, control commands, image data, and character code data from the external device are transferred to the printer unit 2 in accordance with the general command system.

The FAX mode and the printer mode are selected by the Centronics output select switch 108. A power supply 4 is connected to the FAX unit 1.

FIG. 2 is a diagram showing the details of the signal line 301. The signal line 301 includes two different signal line groups, i.e., a signal line group 301-1 extending from the MPU 101 of the FAX unit to the MPU 201 of the printer unit, and a signal line group 301-2 extending from the MPU 201 of the printer unit to the MPU 101 of the FAX unit.

The signal line group 301-1 extending from the MPU 101 of the FAX unit to the MPU 201 of the printer unit includes the following lines.

(1) Reset Signal Line

This line is used when the power supply is turned on and when an abnormality of the printer unit 2 is to be canceled.

(2) Auto-recovery Inhibit Signal Line

This line is used when the auto-recovery operation of the printer unit 2 is to be inhibited. More specifically, this line is used when no auto-recovery operation is required, in a service man mode, and in an assembling process in the factory. That is, this line is used for preventing an ink leakage occurring when a recovery operation is performed in a stand-up state of the main body, as will be described later.

(3) FAX Mode Signal Line

This line is used for informing, to the printer unit 2, that the apparatus is operating in the FAX mode. The FAX command system (to be described later) can be used only when the FAX mode signal line is active. The printer MPU 201 discriminates, using this FAX mode signal line, whether data and commands sent to the printer unit 2 via the Centronics I/F 302 are those from the FAX unit 1 or from an external computer.

(4) Emulation Mode Signal line

This line is used for informing, to the printer unit 2, the type of emulation mode in the printer mode. The emulation mode can be changed in a user registration operation. This signal line is used for selecting a command system since the printer uses different command systems depending on the types of external devices.

(5) Soft Power Switch Signal Line

This line is used for ON/OFF-controlling the power supply of the printer unit 2 in a software manner. The power supply of the printer unit 2 is turned on in a software manner using this soft power switch signal line when the power supply is turned on, before and after the print operation, when a printer setting registration is changed, and when the operation mode is transferred to the printer mode. This line will be described in detail later.

(6) On-line Switch

This line is used for controlling the on- or off-line state between the FAX unit 1 and the printer unit 2.

The signal line group 301-2 extending from the MPU 201 of the printer unit to the MPU 101 of the FAX unit will be explained below.

(7) Idle Signal Line

This line is used for informing, to the FAX unit 1, the idle state of the printer unit 2. The idle state means a state wherein the printer unit 2 has processed all the received control commands. When the printer unit 2 is not in the idle state, the FAX unit 1 must not perform a soft power-OFF process of the printer unit 2.

(8) Paper Feed Request Signal Line

This line is used for informing, to the FAX unit 1, that the printer unit 2 is about to feed a recording paper sheet. In the FAX mode, when data to be printed is received from the FAX unit 1, or when print data has a length exceeding one recording paper sheet, the paper feed request signal line is used. In the printer mode as well, when data to be printed is received from an external device, or when print data has a length exceeding one recording paper sheet, the paper feed request signal line is used. Exceptionally, the paper feed request signal line is also used in a paper feed operation in a test print mode in the printer mode.

(9) Remaining Ink Amount Detection Output Signal Line

This line is used for informing, to the FAX unit 1, that the ink presence/absence result has been discriminated. This line achieves a function in combination with a remaining ink amount detection result signal line in the next item. The facsimile apparatus of this embodiment has a remaining ink amount detection function which is enabled during only a print operation of a received image in the FAX mode, and which is provided for the following reason. The received image must be reliably printed due to its nature. Therefore, when an ink is used up, a message indicating this is informed to the FAX unit 1. The FAX unit 1 stores the received image in the memory, and displays, e.g., a message for urging a user to exchange a cartridge. Thereafter, the printer unit attempts to print the received image again. As a method of detecting the remaining ink amount, footer print detection is performed. In the footer print detection, a remaining ink amount detection mark (footer) is printed at a predetermined position on the tail edge portion of each page of a received image, and the mark is detected by a photosensor. If the output from the photosensor indicates “black”, the presence of an ink is determined; if the output from the photosensor indicates “white”, the absence of an ink is determined.

(10) Remaining Ink Amount Detection Result Signal Line

This line is used for informing the ink presence/absence result to the FAX unit 1. This line achieves a function in combination with the remaining ink amount detection output signal line in the previous item. When the absence of an ink is detected, after this remaining ink amount detection result signal is output, the remaining ink amount detection output signal line in the above item is activated. Therefore, the FAX unit 1 refers to this remaining ink amount detection result signal after it confirms the remaining ink amount detection output signal line in the above item, thus detecting the presence/absence of an ink. The remaining ink amount detect process will be described later.

(11) Color Recording Paper Signal Line

This line is used for informing, to the FAX unit 1, that the recording paper sheet is color paper. This line achieves a function in combination with the remaining ink amount detection output signal line in the second previous item. When it is detected that the recording paper sheet is color paper, the remaining ink amount detection output signal line in the second previous item is activated after this color recording paper signal is output. Therefore, the FAX unit 1 refers to this remaining ink amount detection result signal after it confirms the remaining ink amount detection output signal line in the above item, thus determining whether or not the recording paper sheet is color paper. The remaining ink amount detect process will be described later.

(12) Cartridge Presence/absence Signal Line

This signal line is used for informing the presence/absence of an ink cartridge to the FAX unit 1. When the printer unit 2 successively detects a cartridge absence or presence state 16 times in timer interrupts at 100-msec intervals, it changes the cartridge presence/absence signal line. Upon detection of the absence of a cartridge based on this cartridge presence/absence signal line, the FAX unit 1 displays a message for urging a user to attach a cartridge on, e.g., an LCD display, and inhibits a print operation in the FAX mode.

(13) Normal/Wrong Cartridge Signal Line

This line is used for informing, to the FAX unit 1, if the cartridge is normal. When the printer unit 2 successively detects a wrong or normal cartridge attached state 16 times in timer interrupts at 100-msec intervals, it changes the normal/wrong cartridge signal line. Upon detection of attachment of a wrong cartridge based on the normal/wrong cartridge signal line, the FAX unit 1 displays a message for urging a user to attach a normal cartridge on, e.g., an LCD display.

(14) Soft Power Signal Line

This line indicates the power state in a software manner. In the FAX mode, this signal line indicates an ON state during a print operation and a recovery operation. On the other hand, in the printer mode, this signal line always indicates an ON state independently of a recording operation or a standby state.

(15) On-line Signal Line

This line indicates the on- or off-line state of the printer unit 2 in the FAX mode. In the off-line state, commands using the Centronics I/F are not accepted.

(16) Error Signal Line

This line indicates the error state of the printer unit 2.

The command system will be described in detail below.

The command system using the Centronics I/F 302 includes a general command system and a FAX command system.

The general command system is one to be generally used, and can be used in both the FAX mode and the printer mode. The command system set in the printer mode can be changed by a user registration operation.

The FAX command system is a special command system prepared for functions, which cannot be realized by only the general command system. Since this command system realizes special functions, it is supported in only the FAX mode. When commands in the FAX command system are received while the printer unit is in the printer mode, such commands are ignored.

The FAX command system includes the following commands.

(1) Printer Setting Command

This command is associated with initial setting of the printer unit 2. This command is used when the power supply is turned on, when the printer setting registration is to be changed, when a recording paper sheet is fed or discharged in the FAX mode, and when the FAX mode is abnormally terminated.

(2) Bi-directional Print Correction Command

This command is used for correcting a print offset between forward and backward paths upon execution of a bi-directional print operation. This command is used when the power supply is turned on and when a recording paper sheet is fed in the FAX mode. Since the printer unit 2 adopts a shuttle print system for recording an image while moving the head having a plurality of ink ejection orifices in the main scanning direction via the carriage, a value for correcting a print offset between forward and backward scans is transferred to the printer unit 2 as a value for each print mode or for each apparatus. The printer unit 2 performs bi-directional print correction in the soft power-ON process and immediately before the beginning of a print operation.

(3) Bi-directional Print Command

This command is associated with a bi-directional or uni-directional print mode. This command is used when a recording paper sheet is fed in the FAX mode. This command transfers, to the printer unit, a bi-directional or uni-directional print mode selected in the user registration operation (which mode is separately set in correspondence with an image print operation and a character code print operation in the FAX mode). In the printer mode, the operation does not comply with the user registration contents.

(4) Footer Print Command

This command includes data indicating whether or not a received information footer is printed, data indicating whether or not the remaining ink amount is detected, the number of scans corresponding to the beginning of recording paper tail edge detection, and footer character codes. This command is used when recording paper sheets are fed in units of pages of a received image.

The received information footer is information characters including a date of reception of an image by the own apparatus, a reception number, a received image page number, and the like. When it is set in the user registration contents that the received information footer is to be printed, the printer prints information characters, which are developed using font data of the printer on a received image, on the tail edge portion of a recording paper sheet immediately before the recording paper sheet is discharged. When it is set in the user registration contents that the remaining ink amount is to be detected, the printer prints a remaining ink amount detection mark (footer) in the same scan as the received information footer, and performs the remaining ink amount detect process.

(5) FAX Image Command

This command is used for transferring the conversion ratio of resolution conversion in the sub-scanning direction together with image data for one line. This command is used when a received image, a copy image, and an untransmitted image are printed. Resolution conversion in the main scanning direction is realized by a hardware circuit (8 pel-to-360 dpi resolution converter 107), but resolution conversion in the sub-scanning direction is realized in a software manner. A software program of the MPU 101 in the FAX unit 1 calculates the conversion ratio, and transfers the calculated conversion ratio of the resolution conversion together with image data for one line in this command. On the other hand, a software program of the MPU 201 of the printer unit 2, which received image data for one line and the conversion ratio, expands the image data for one line on the basis of the received conversion ratio, and prints the expanded data.

(6) FAX Reset Command

This command is used for initializing various flags of the printer unit used in the FAX mode. This command is used when a recording paper sheet is discharged in the FAX mode.

The following operations will be described in detail below:

Operation upon Power-ON

Operation in Standby State

Copy Operation

Received Image Output Operation

Report Output Operation

Operation in Printer Mode

[Operation Upon Power-ON]

The operation upon power-ON will be described below with reference to FIGS. 7, 8, and 9.

When the power supply of the FAX apparatus is turned on, the FAX unit 1 initializes peripheral devices (the communication unit, reader, RL-RAW converter, and the like) (7-1), and thereafter, resets the printer unit 2 via the reset signal line to the printer unit 2 (7-2). After an elapse of a wait time of 100 msec (7-3), the MPU 101 executes a soft power-ON process of the printer unit via the soft power switch signal line of the signal line 301 (7-4), and checks an error (7-5). In this case, the MPU 101 waits for 100 msec to wait for the end of initialization which is executed by the printer unit 2 simultaneously with the power-ON operation. If an error is detected, an error message is displayed (7-6), and thereafter, a soft power-OFF process is executed (7-8). If no error is detected, a printer setting process is executed (7-7) to complete final initialization of the printer unit. Thereafter, the soft power-OFF process is executed (7-8), and the printer unit is set in a standby state. Thereafter, a memory clear report is output if necessary (7-9), and the FAX unit is set in a standby state.

On the other hand, when the power supply is turned on, the printer unit 2 executes a hard power-ON initialization process shown in FIG. 8 in response to the reset signal output in step (7-2) in FIG. 7. In order to prevent overrun of the MPU 201, a watch-dog timer is initialized (8-1), and in order to prevent an erroneous operation of the MPU 201, registers are initialized (8-2). Furthermore, the peripheral devices such as the length/width converter 204, the Centronics I/F 302, and the like are initialized (8-3). In order to prevent an erroneous operation of the MPU 201 and to set initial values of parameters, the work area of the RAM is initialized (8-4). Thereafter, a timer interruption is started (8-5). Then, the RAM is initialized to erase data left in the buffers (8-6).

When the software power supply is turned on via the soft power switch signal line in the signal line 301 by the MPU 101 in the FAX unit 1, the printer unit 2 executes initialization upon soft power-ON (FIG. 9).

The FAX apparatus of this embodiment has three power supply states. In the first state, the power supply is turned off in a hardware manner, and no electric power is supplied to the printer unit 2 and the FAX unit 1.

In the second state, the power supply is turned on in a hardware manner, and electric power is supplied to both the FAX unit 1 and the printer unit 2. However, in this state, since the printer unit 2 is subjected to only the hard power-ON initialization process, and LEDs and the like are turned off, the printer unit 2 is apparently in the same state as a power-OFF state.

In the third state, the power supply is turned on in a hardware manner, electric power is supplied to both the FAX unit 1 and the printer unit 2, and the printer unit 2 is active (recording, printer setting, and the like).

These three states are prepared for the following reasons.

If the MPU 201 of the printer unit 2 is always set in a standby state, when a recording request of a copy or received image from the MPU 101 of the FAX unit 1 and a print request from an external device (not shown) are input in a complicated order, the MPU 201 of the printer unit 2 may overrun. In order to prevent this, each time a print request of a copy or received image is issued, the MPU 201 of the printer unit 2 is initialized. This is the first reason.

Each time the printer unit 2 is initialized, if the same initialization operation as that executed upon power-ON is executed, the time required for initialization is prolonged, and the performance of the system as a whole is lowered. This is the second reason.

The third reason is to prevent wasteful power consumption in a case wherein the LEDs and the like of the printer unit 2 are turned on even in a non-use state of the printer unit 2 such as a transmission mode or a memory reception mode.

The fourth reason is to prevent a user from. erroneously recognizing that the printer unit 2 is active if the LEDs of the printer unit 2 are kept ON.

The fifth reason is to easily cancel an error state by initializing the printer unit 2 when the printer unit 2 is terminated with an error.

The initialization upon soft power-ON will be described below with reference to FIG. 9. In the initialization upon soft power-ON, only resources used after the soft power-ON process are initialized. First, the RAM is checked (9-1), and thereafter, the work area (9-2), the RAM (9-3), a data analysis program sent from the Centronics I/F (9-4), and a carriage/paper feed control program (9-5) are initialized in turn. The MPU 201 of the printer unit 2 initially sets the carriage position, i.e., the position of the printing head 205 using a home position sensor (not shown) (9-6). In this process, since the carriage position is recognized based on the number of pulses applied to a pulse motor for driving the carriage, the reference position of the carriage is set using the home position sensor. Thereafter, in order to conduct bi-directional correction, the carriage is moved forward from the reference position by a predetermined amount, and thereafter is moved backward, thus sampling the state of the home position sensor (9-7). That is, the number of pulses required for the forward movement and the number of pulses required for the backward movement are counted, and a correction value in the bi-directional print mode is calculated on the basis of these count values. When this correction value has exceeded a predetermined range, an error is determined, and the recording operation is disabled.

It is then checked using, e.g., the PE sensor 206 if a paper sheet remains in the unit, and if any remaining paper sheet is detected, it is discharged (9-8).

It is checked if an auto-recovery operation is performed (9-9). The auto-recovery operation is a process executed for preventing clogging of nozzles when the printing head 205 is an ink-jet type head. In this decision, it is checked if the MPU 101 of the FAX unit 1 inhibits the auto-recovery operation via the signal line 301. If the auto-recovery operation is to be performed in accordance with a condition (to be described later), the auto-recovery operation is performed (9-10), thus ending the initialization process. On the other hand, if the auto-recovery operation is inhibited, the initialization process directly ends.

The auto-recovery operation will be described below.

The auto-recovery inhibit signal line in the signal line 301 is used for inhibiting the auto-recovery operation of the printer unit 2 from the MPU 101 of the FAX unit 1. In the ink-jet recording system, a printing ink non-ejection state often occurs due to, e.g., clogging of printing ink ejection nozzles although the printing ink remains in the cartridge. An operation for preventing the printing ink non-ejection state is the auto-recovery operation, and is performed as follows. That is, after the ejection orifices of the printing head are recovered, the suction pump is driven to discharge the ink from the ejection orifices while the head is capped by the cap member in the unit 314. On the other hand, when the head has already suffered the non-ejection state, the above-mentioned operation can be performed by operating keys (not shown) to perform a manual recovery operation.

The auto-recovery operation is performed under the following conditions:

Hard power-ON

Lapse of 72 hours from the previous recovery operation

Exchange of cartridge

The auto-recovery operation is actually performed at the following timings:

Upon soft power-ON

Immediately before paper feed

Immediately after paper discharge

The time required for the auto-recovery operation is about 15 sec in the case of hard power-ON or the lapse of 72 hours, and is 30 sec in the case of the exchange of a cartridge. Therefore, when the FAX unit 1 determines that the auto-recovery operation is not required, the time can be prevented from being wasted by inhibiting the auto-recovery operation using the auto-recovery inhibit signal line.

By utilizing the fact that the output from an original sensor changes to a state indicating the presence of an original sheet when the housing is set in a stand-up state, the auto-recovery operation is inhibited in this situation. Thus, ink leakage upon execution of the auto-recovery operation in the stand-up state of the housing can be prevented.

This state will be explained below with reference to FIGS. 3 to 5.

FIG. 3 shows a state wherein the housing is normally set, FIG. 4 shows a state wherein an original sheet is present, and FIG. 5 shows a state wherein the housing is set in a stand-up state. Referring to FIG. 3, the actuator 301 closes the original sheet sensor. On the other hand, due to the presence of an original sheet in FIG. 4, and due to the weight of the actuator in FIG. 5, the original sheet sensor 110 is not closed. Therefore, when the housing is set in the stand-up state, the original detection sensor 110 is set in the same state as in the original presence state. In this embodiment, by utilizing this output, the auto-recovery operation is inhibited.

Conditions for determining that “the auto-recovery operation is not required” are as follows.

(1) Assembling Process in Factory

Time can be prevented from being wasted by the auto-recovery operation during assembling, thus improving assembling efficiency. In addition, ink leakage upon assembling in a stand-up state of the housing can be prevented.

(2) Test Print

Time can be prevented from being wasted during the test print operation. If a printing ink non-ejection state occurs, a manual recovery operation is performed.

(3) When Original Sensor 110 Indicates Original

Presence State upon Power-ON

The power supply may be turned on while the housing is set in the stand-up state, and in this state, ink leakage caused by the auto-recovery operation can be prevented.

(4) Printer Setting Process

During the printer setting process, a print operation is never performed, and hence, the auto-recovery operation is not required. Thus, time can be prevented from being wasted by the auto-recovery operation.

[Operation in Standby State]

The standby states after the end of initialization of the FAX unit 1 and the printer unit 2 will be described below with reference to FIGS. 10A to 11. Standby State of FAX Unit (FIGS. 10A to 10C)

In the standby state of the MPU 101 of the FAX unit 1, the presence/absence of reception (10-1-1) and a key input by a user (10-1-3) are monitored. If image data is received, a received image is output (10-1-2); if a key input is made, a key input process is executed (10-1-4). In a timer interrupt, a printer setting request indicating whether the bi-directional or uni-directional print mode is set, whether or not a footer mark is printed, or the like is monitored (10-2-1). When the previous print operation is abnormally terminated or when the printer setting contents are changed in the user registration contents (10-3-1), the printer setting request is activated (10-3-2). If the printer setting request is activated (10-2-1), a printer setting process is executed (10-2-3).

Standby State of Printer Unit (FIG. 11)

The standby state of the MPU 201 of the printer unit corresponds to a soft power-OFF state, and it is monitored if the soft power switch signal line in the signal line 301 is changed to an ON state by the MPU 101 of the FAX unit 1 (10-4-1). As described above, the soft power switch signal line is changed to an ON state when the printer setting registration is changed or when the operation mode is transferred to the printer mode. When the soft power switch signal line is changed to an ON state, a soft power-ON process is executed (10-4-2), and the MPU 201 is ready to receive commands (10-4-3).

Initialization upon execution of the soft power-ON process has been described above with reference to FIG. 9.

[Copy Operation]

The copy operation will be described below.

When the copy operation is instructed by a key (not shown), different processes are executed depending on the number of sets of copies. More specifically, when the number of sets of copies is 1, a single copy operation is performed; when it is 2 or more, a multi-copy operation is performed.

The single copy operation will be described below with reference to FIGS. 12A and 12B.

In this mode, the single copy operation is realized by converting the resolution of raw image data on an original sheet read by the original reader 102 using the resolution converter 107, and then transferring the converted data to the printer unit 2.

When the copy operation is performed, it is checked if the printer is ready (11-1-1). In the printer ready state, recording paper sheets are present, the ink cartridge is present, the recording cover is closed, no recording system error is detected, and the power supply of the printer unit is OFF. If the printer is not ready, an error message is displayed (11-1-2), and the copy operation ends. If the printer is ready, read and record semaphores are obtained (11-1-3). The record semaphore cannot be obtained when another task (reception, recording, transmission) is active. If at least one of the two semaphores cannot be obtained, the semaphores are released, and an error message is displayed (11-1-4), thus ending the copy operation. If both the semaphores can be obtained, a soft power-ON process is executed (11-1-5). If an error has occurred during the soft power-ON process (11-1-6), a compulsive soft power-OFF process is executed (11-1-7), an error message is displayed (11-1-4), and the semaphores are released. Thereafter, the copy operation ends. If no error is detected, a recording paper feed process is executed. If an error has occurred during the recording paper feed process, the compulsive soft power-OFF process is executed (11-1-10), a printer setting request is activated (11-1-11), an error message is displayed (11-1-4), and the semaphores are released (11-1-19). Thereafter, the copy operation ends.

If no error is detected in the recording paper feed process, reading and recording operations are started. These processes are parallelly executed.

In the original reading operation (11-1-12), a free read line buffer of the line buffers for four lines in the RAM 103 is searched for in a 10-msec timer interrupt (11-1-13). If no free read line buffer is found, the timer interrupt process ends. If a free read line buffer is found, the read line buffer is reserved, and a signal for triggering transfer of image data from the reading system is generated.

In the next timer interrupt, since the read line buffer reserved in the previous timer interrupt has already stored image data, the read line buffer is determined as a full buffer, and another free read line buffer of those for four lines is searched for again. This reading operation is repeated until the reading operation ends.

On the other hand, in the recording operation, a full read line buffer is searched (11-1-14), and image data read out from the full read line buffer is subjected to an 8 pel-to-360 dpi resolution conversion process (white data at the right end is ignored) by the resolution converter 107 (11-1-15), and thereafter, the converted data is developed on a free record line buffer. Thereafter, in an interrupt process of recording, image data is transferred, and the record line buffer is released. Upon repetition of the above-mentioned operation, the reading and recording operations end. As post-processes, a recording paper discharge process (11-1-17) and a soft power-OFF process (11-1-18) are executed, and the read and record semaphores are released (11-1-19). Thereafter, the single copy print operation ends.

The multi-copy operation will be described below with reference to FIGS. 13, 14, and 15.

In this mode, the multi-copy operation is realized by temporarily storing raw image data obtained by reading an original image in the image memory (the image storage buffer in the RAM 103), and repeating, in units of sets of copies, an operation for reproducing the image data from the image memory, resolution-converting the reproduced image data, and transferring the converted data to the printer unit 2.

When a copy operation is performed, it is checked if the printer is ready (11-2-1). If the printer is not ready, an error message is displayed, and thereafter, the copy operation ends. If the printer is ready, read and record semaphores are obtained (11-2-2). If at least one of the two semaphores cannot be obtained, an error message is displayed (11-2-7) after the semaphores are released, thus ending the copy operation. If both the semaphores can be obtained, read and record tasks are started (11-2-3). The following description will be made in units of tasks. Read Task (FIG. 14) An original sheet is fed to the read position (11-3-1). Thereafter, image data is transferred to the read line buffer in the same manner as in the read operation in the single copy operation, the stored image data is encoded into, e.g., MMR codes, and the encoded data is stored in the image memory (11-3-2). Upon completion of reading of a single original sheet, after the original sheet is discharged (11-3-3), it is checked if the next original sheet is present (11-3-4). If the next original sheet is not present, the read task end; otherwise, the flow returns to step (11-3-1). Record Task (FIG. 15).

The soft power-ON process of the printer unit is executed (11-4-1). If an error has occurred during the soft power-ON process (11-4-2), the compulsive soft power-OFF process is executed (11-4-3), and an error message is displayed (11-4-4). Thereafter, the record task ends itself. If no error is detected, an image memory (copy read image) to be recorded is searched for (11-4-9). If an image memory is found, a recording paper feed process is executed.

If an error has occurred during the recording paper feed process, the compulsive soft power-OFF process is executed (11-4-7), a printer setting request is activated (11-4-8), and an error message is displayed (11-4-4). Thereafter, the record task ends itself.

If no error is detected, the image data read out from the image memory is subjected to a decode process to run length data (11-4-10), an RL (run length)-to-RAW (raw) conversion process, and an 8 pel-to-360 dpi resolution conversion process (11-4-10), and the converted data is developed on a free record line buffer. Note that white data at the right end is ignored since image data is transferred from the Centronics I/F. The way of using the line buffers is the same as that of the read line buffers. Thereafter, image data is transferred and the record line buffer is released in the interrupt process of recording.

Upon completion of the print operation of the image memory (copy read image) to be recorded (11-4-11), a recording paper discharge process is executed as a post-process (11-4-12), thus completing the copy operation of a set of copies. If there are remaining sets of copies, the above-mentioned operation is repeated from the recording paper feed process (11-4-13). If the copy operation of the predetermined number of sets of copies is completed, the soft power-OFF process is executed (11-4-14), and thereafter, the record task ends itself.

When both the read and record tasks end, the multi-copy operation ends.

[Received Image Output Operation]

The received image output operation will be described below with reference to FIG. 16.

In a FAX communication task, after a FAX call is set and a pre-procedure is executed (12-1-1), a received image is stored in the image memory. At the same time, it is checked if the printer is ready (12-1-2). If the printer is ready, a record semaphore is obtained (12-1-3). If the semaphore cannot be obtained or if the printer is not ready, a substitute reception process is executed (12-1-7). If the semaphore is obtained, a record task is started (12-1-4), and the output operation of the received image is simultaneously processed (the image signal is stored in the image memory) (12-1-5). Upon completion of the FAX communication, the FAX communication task ends itself (12-1-6).

The operation of the record task (12-1-4) will be described below with reference to FIGS. 17A and 17B. Record Task (FIGS. 17A and 17B).

The soft power-ON process of the printer unit 2 is executed (12-2-1). If an error has occurred during the soft power-ON process (12-2-3), a compulsive soft power-OFF process (12-2-4) is executed, an error message is displayed (12-2-5), a substitute reception process is executed (12-2-6), and the record semaphore is released (12-2-21). Thereafter, the record task ends itself. If no error is detected, an image memory (received image) to be recorded is searched for. If an image memory is found, the recording paper feed process is executed (12-2-7). If an error has occurred during the recording paper feed process (12-2-8), a compulsive soft power-OFF process is executed (12-2-9), a printer setting request is activated (12-2-10), an error message is displayed (12-2-5), a substitute reception process is executed (12-2-6), and the record semaphore is released (12-2-21). Thereafter, the record task ends itself. If no error is detected, the image data in the image memory is subjected to a decode process for converting the image data into run length (RL) data, an RL-to-RAW conversion process, and an 8 pel-to-360 dpi resolution conversion process (12-2-12), and thereafter, the converted data is developed on a free record line buffer (white data at the right end is ignored).

The remaining ink amount detection result (to be described later) is monitored for each one-line process (12-2-13). If the remaining ink amount detection result indicates “NG”, a compulsive soft power-OFF process is executed (12-2-14), a printer setting request is activated (12-2-10), an error message is displayed (12-2-5), a substitute reception process is executed (12-2-6), and the record semaphore is released (12-2-21). Thereafter, the record task ends itself.

The way of using the line buffers is the same as that of the read line buffers. Thereafter, in the interrupt process of recording, image data is transferred and the record line buffer is released. Upon completion of the print operation of the image memory (received image) to be recorded, as post-processes, a recording paper discharge process (12-2-16) and a remaining ink amount detect process (12-2-17) are executed. If an error has occurred in the remaining ink amount detect process (12-2-18), a compulsive soft power-OFF process is executed (12-2-14), a printer setting request is activated (12-2-10), an error message is displayed (12-2-5), a substitute reception process is executed (12-2-6), and the record semaphore is released (12-2-21). Thereafter, the record task ends itself. If a remaining page is present (12-2-19), the above-mentioned operation is repeated from the recording paper feed process. Upon completion of the print operation of the received image, a soft power-OFF process is executed (12-2-21), and the record semaphore is released. Thereafter, the record task ends itself.

[Report Output Operation]

The report output operation will be described below.

The report output operation includes two different output operations, i.e., a normal report output operation for printing a report using only font data of the printer unit 2, and an untransmitted image report output operation for printing both the font data of the printer unit 2 and image data in the image memory.

The normal report output operation will be described below with reference to FIG. 18.

It is checked if the printer is ready (13-1-1). If the printer is not ready, an error message is displayed (13-1-2), and thereafter, the report output operation ends. If the printer is ready, a record semaphore is obtained (13-1-3). If the record semaphore cannot be obtained, an error message is displayed (13-1-4), and thereafter, the record semaphore is released (14-1-5), thus ending the report output operation. If the record semaphore can be obtained, a soft power-ON process of the printer unit is executed (13-1-18). If an error has occurred during the soft power-ON process (13-1-7), a compulsive soft power-OFF process is executed (13-1-8), an error message is displayed (13-1-9), and the record semaphore is released (13-1-5). Thereafter, the report output operation ends. If no error is detected, a recording paper feed process is executed (13-1-10). If an error has occurred during the recording paper feed process (13-1-11), the compulsive soft power-OFF process is executed (13-1-12), a printer setting request is activated (13-1-13), an error message is displayed (13-1-9), and the record semaphore is released (13-1-5). Thereafter, the report output operation ends.

If no error is detected, normal report print information (header, report title, and contents) is generated as character code strings (13-1-14), and the character code strings are transferred to the printer unit 2 via the Centronics I/F 302 (13-1-15). The printer unit 2, which received the character code strings, stores only character codes stored in the reception buffer in the character buffer, develops images of the character codes in the character buffer, stores the developed images in the printer buffer, and prints the stored images using the printing head 205. In the FAX unit 1, after all the character code strings are transferred, a recording paper discharge process (13-1-17) and a soft power-OFF process (13-1-18) are executed, and the record semaphore is released (13-1-5), thus ending the normal report output operation.

The untransmitted image report output operation will be described below with reference to FIG. 19.

In the untransmitted image report output operation, steps 13-2-2 to 13-2-5 in FIG. 19 are inserted after “transfer character code strings to the printer unit” in step 13-1-14 in the normal report output operation. More specifically, the print mode is switched from the character code string print mode to the image print mode (13-2-2), and an image memory (untransmitted image which cannot be transmitted due to a transmission error) to be recorded is searched for (13-2-3). If an image memory is found, image data in the image memory is subjected to a decode process, an RL-to-RAW conversion process, and an 8 pel-to-360 dpi resolution conversion process (13-2-4), and thereafter, the converted data is developed on a free record line buffer (white data at the right end is ignored). The way of using the line buffers is the same as that of the read line buffers. Thereafter, in the interrupt process of recording, image data is transferred and the record line buffer is released.

Upon completion of the print operation of the image memory (untransmitted image which cannot be transmitted due to a transmission error) to be recorded, the flow advances to the “recording paper discharge process” in the normal report output operation (13-2-5).

[Operation in Printer Mode]

The FAX apparatus of this embodiment has two modes, i.e., the FAX mode in which the printer unit 2 is used as the recording system of the FAX unit 1, and the printer mode in which the printer unit is used as a printer for an external device such as a personal computer, a wordprocessor, and the like.

FIG. 20 shows the transfer sequence from the FAX mode to the printer mode.

The FAX mode is transferred to the printer mode by depressing a printer key (not shown) on the operational panel 112 of the main body. Upon depression of the printer key, the state of a printer LED built in the printer key is changed from an OFF state to an intermittent flashing state (14-4), and a soft power-ON process (printer mode) is executed (14-5). Thereafter, the state of the printer LED built in the printer key is changed to an ON state indicating the printer mode (14-6). In this case, the transfer conditions include the following items:

printer ready (14-1)

Soft power-OFF (14-2)

No printer setting request (14-3)

Record semaphore obtained (14-4)

FIG. 21 shows the return sequence from the printer mode to the FAX mode.

The printer mode returns to the FAX mode upon depressing the printer key on the main body. Upon depression of the printer key (not shown), the state of the printer LED built in the printer key is changed from an ON state to an intermittent flashing state (15-1), and the Centronics switch is switched to a FAX unit-printer unit side (15-2). Then, a compulsive soft power-OFF process is executed. Thereafter, the state of the printer LED built in the printer key is changed to an OFF state indicating the FAX mode (15-4), and the record semaphore is released. In this case, there are no transfer conditions. However, if a remaining paper sheet is present (15-6), a message indicating this is displayed (15-7).

When the operation of the FAX unit is required in the printer mode, since the printer unit 2 is used by an external personal computer in the printer mode, the copy operation, the received image print operation, and the report output print operation cannot be performed. In this case, when a FAX image is received, the received image is substitute-received in the image memory in the FAX unit 1. Thus, the FAX reception operation can be performed even in the printer mode.

The MPU 101 of the FAX unit 1 has the following three processes shown in FIG. 22 as timer interrupt processes, and these processes are executed in turn at 5-msec intervals.

Interrupt process of detection of remaining ink amount (16-1-1)

Interrupt process of recording (16-1-2)

Power supply handler of the printer unit (16-1-3)

These interrupt processes will be described in detail later.

Furthermore, the MPU 101 of the FAX unit 1 has the following process shown in FIG. 23 as a periodic task process, and this process is started at 200-msec intervals.

Printer setting process (same as in FIG. 10B) (16-2-1)

The operations on the printer unit side will be described below.

The soft power-ON process in the FAX mode will be described below with reference to FIG. 24.

The soft power-ON process of the printer unit 2 is realized by issuing a request (pwon_req=YES) from the MPU 101 of the FAX unit 1 to a soft power supply handler (to be described later).

More specifically, the Centronics output select switch 108 is set at the FAX unit 1-printer unit 2 side (17-1), the auto-recovery inhibit signal line is activated (17-3) when the auto-recovery operation is inhibited (17-2), and pwon_req=YES is set (17-4). Thereafter, the soft power supply handler (to be described later) waits until the soft power supply (power_flg) is turned on (17-5).

The soft power-ON process in the printer mode will be described below with reference to FIG. 25.

The soft power-ON process of the printer unit is realized by issuing a request (pwon_req=YES) from the MPU 101 of the FAX unit 1 to the soft power supply handler.

More specifically, the Centronics output select switch 108 is set at the external device-printer unit 2 side (18-1), the auto-recovery inhibit signal line is activated (18-3) when the auto-recovery operation is inhibited (18-2), and pwon_req=YES is set (18-4). Thereafter, the soft power supply handler waits until the soft power supply (power_flg) is turned on (18-5).

The soft power-OFF process will be described below with reference to FIG. 26.

The soft power-OFF process of the printer unit 2 is realized by issuing a request (pwoff_req=YES) to the soft power supply handler. More specifically, pwoff_req=YES is set (19-1).

FIG. 27 shows the compulsive soft power-OFF process.

The compulsive soft power-OFF process of the printer unit 2 is realized by issuing a request (force_pwoff_req=YES) to the soft power supply handler.

More specifically, since the compulsive soft power-OFF process is executed in an abnormal termination state, a printer setting request is activated (20-2). Then, force_pwoff_req=YES is set (20-3).

The soft power supply handler used in the soft power-ON/OFF process described above will be explained below with reference to FIG. 28.

The soft power supply control of the printer unit 2 is performed by the 5-msec timer interrupt of the FAX unit 1. In this control, the MPU 101 of the FAX unit generates a pseudo 1,000-msec pulse signal for turning on the power switch of the printer unit 2 so as to turn on the power supply of the printer unit 2.

When all requests associated with the soft power-ON process are “NO”, the control advances to the soft power-OFF process (FIGS. 29 and 30) without executing any process, and exits from the timer interrupt.

If the request pwon_req is set to be YES (21-1-1), pwon_req=NO, power_flg=ERROR, pwon_push_req=YES, and pwon_push_time=1,000 msec are set, and thereafter, the soft power switch is turned on, thus exiting from the timer interrupt (21-1-2).

In the next timer interrupt, since pwon_push_req=YES is set (21-1-3), (pwon_push_time−5) msec are calculated to subtract 5 msec from pwon_push_time. If pwon_push_time>0 (21-1-5), the control exits from the timer interrupt. On the other hand, if pwon_push_time=0, pwon_push_req=NO, pwon_wait_req=YES, and pwon_wait_time=2,000 msec are set, and thereafter, the soft power switch is turned off, thus exiting from the timer interrupt (21-1-5). In this manner, a pulse signal having a pulse width of 1,000 msec is formed.

In the next timer interrupt, since pwon_wait_req=YES is set (21-1-7), (pwon_wait_time−5) msec are calculated to subtract 5 msec from pwon_wait_time (21-1-8). If pwon_wait_time>0, the control exits from the timer interrupt (21-1-9). However, if pwon_wait_time=0, pwon_wait_req=NO and power_flg=ON are set, and thereafter, the control exits from the timer interrupt (21-1-10).

With the above-mentioned control, the soft power supply of the printer unit is turned on by the pulse signal having the pulse width of 1,000 msec, and the control ends.

FIG. 29 shows the soft power-OFF sequence.

The process shown in FIG. 29 is executed after the interrupt process shown in FIG. 28. If all requests associated with the soft power-OFF process are “NO” (21-2-1), the control advances to the compulsive soft power-OFF process (FIG. 30) without executing any process, and exits from the timer interrupt.

If pwoff_req=YES is set (21-2-1), the idle state of the printer unit is checked (21-2-2). If the printer unit is not in the idle state, the control exits from the timer interrupt; otherwise, pwoff_req=NO, power_flg=ERROR, and pwoff_push_req=YES are set (21-2-3). Thereafter, if a remaining paper sheet is present in the recording system (21-2-4), a recording paper jam is determined, and an error message is displayed (21-2-5). The soft power switch is turned on, and the control exits from the timer interrupt (21-2-5).

In the next timer interrupt, since pwoff_push_req=YES is set (21-2-6), if the soft power switch signal line is ON (21-2-7), the control exits from the timer interrupt. However, if the soft power switch signal line is OFF, pwoff_push_req=NO, pwoff_wait_req=YES, and pwoff_wait_time=1,500 msec are set. Thereafter, the soft power switch is turned off, and the control exits from the timer interrupt (21-2-7).

In the next timer interrupt, since pwoff_wait_req=YES is set (21-2-8), (pwoff_wait_time−5) msec are calculated to subtract 5 msec from pwoff wait time (21-2-9). If pwoff_wait_time>0 (21-2-10), the control exits from the timer interrupt. However, if pwoff_wait_time=0 (21-2-10), pwoff_wait=NO and power_flg=OFF are set, and thereafter, the control exits from the timer interrupt. With this control, a pulse signal having a pulse width of 1,500 msec is formed.

As described above, the soft power switch of the printer unit 2 is turned off by the pulse signal having a pulse width of 1,500 msec, and the control ends (21-2-11).

FIG. 30 shows the compulsive soft power-OFF sequence.

The process shown in FIG. 30 is executed after the soft power-OFF process shown in FIG. 29.

If all requests associated with the compulsive soft power-OFF process are “NO”, the control exits from the timer interrupt without executing any process. If force_pwoff_req=YES is set (21-3-1), force_pwoff_req=NO, power_flg=ERROR, and pwoff_push_req=YES are set (21-3-2). Thereafter, if a remaining paper sheet is present in the recording system (21-3-3), a recording paper jam is determined, and an error message is displayed (21-3-4). The soft power switch is turned on, and the control exits from the timer interrupt (21-3-5).

In the next timer interrupt, since pwoff_push_req=YES is set (21-2-6), if the soft power switch signal line is ON, the control exits from the timer interrupt (21-2-7). However, if the soft power switch signal line is OFF, pwoff_push_req=NO, pwoff_wait=YES, and pwoff_wait_time=1,500 msec are set. Thereafter, the soft power switch is turned off, and the control exits from the timer interrupt (21-2-7).

In the next timer interrupt, since pwoff_wait=YES is set (21-2-8), (pwoff_wait_time−5) msec are calculated (21-2-9). If pwoff_wait_time>0, the control exits from the timer interrupt (21-2-10). However, if pwoff_wait_time=0, pwoff_wait=NO and power_flg_OFF are set, and thereafter, the control exits from the timer interrupt (21-2-11). With this control, a pulse signal having a pulse width of 1,500 msec is formed.

As described above, the soft power supply of the printer unit 2 is compulsively turned off by the pulse signal having a pulse width of 1,500 msec, and the control ends.

The operation in the recording paper feed process before an image print operation will be described below with reference to FIG. 31.

A process from when the FAX unit 1 generates a recording paper feed command according to the user registration contents and transfers it to the printer unit 2 until a recording paper sheet is aligned by the pickup roller 313 is the recording paper feed process.

First, it is checked if the printer is ready (22-1). If the printer is not ready, an error message is displayed (22-8), and the operation is terminated with an error (22-9). However, if the printer is ready, a motor semaphore is obtained (22-2). If the motor semaphore cannot be obtained, an error message is displayed (22-8), and the operation is terminated with an error (22-9). If the printer is ready and the motor semaphore is obtained, a recording paper feed command is generated (22-8). The recording paper feed command is a set of the following commands:

Printer reset

Print mode (normal or economy)

Printer setting

Bi-directional print correction

Page mode

Footer print

Bi-directional print

Raster skip

These commands are as follows. That is, the printer is initialized in response to the printer reset command. The print mode command follows the print mode in the image print mode in the user registration contents. The printer setting command follows the contents of the FAX mode printer setting in the user registration contents. The bi-directional print correction command has a value inherent to the apparatus, and is registered not by a user but by a service man. The page mode command is a command for selecting whether, in a long data print operation, data for one page is recorded and the remaining data is ignored, or the print operation for the second and subsequent pages is continued, and is set ON for a copy or untransmitted image report print operation but is set OFF for a received image or normal report print operation. As for the footer print command, please refer to the paragraphs of the command system. The bidirectional print command follows a bi-directional print mode in an image print mode in the user registration contents. The raster skip command is a recording paper feed start command.

Upon completion of generation of the recording paper feed command in the FAX unit 1 (22-3), the commands are simultaneously transferred to the printer unit 2 via the Centronics I/F 302 (22-4). Then, the FAX unit 1 waits for a paper feed request input from the printer unit 2 (22-5). The printer unit 2, which received the recording paper feed command, analyzes and executes the commands in turn. Upon analysis of the last raster skip command in the received command, the printer unit 2 issues a paper feed request to the FAX unit 1. Upon reception of the paper feed request (22-5), the FAX unit 1 causes the motor 111 to start the paper feed operation (22-6), and ends the paper feed operation when a recording paper sheet is fed to the position of the PE sensor 206 (22-7). The following position alignment operation of a recording paper sheet is entrusted to the printer unit 2. The printer unit 2 aligns the position of the recording paper sheet in accordance with a predetermined alignment amount.

The recording paper feed process before the character code print operation will be described below. In this process, a process from when the FAX unit 1 generates a recording paper feed command according to the user registration contents and transfers it to the printer unit 2 until a recording paper sheet is aligned by the pickup roller 313 is the recording paper feed process. The process flow is the same as that of the recording paper feed process before the image print operation shown in FIG. 31.

More specifically, it is checked if the printer is ready (22-1). If the printer is not ready, an error message is displayed (22-8), and the operation is terminated with an error (22-9). However, if the printer is ready, a motor semaphore is obtained (22-2). If the printer is ready and the motor semaphore is obtained, a recording paper feed command is generated (22-3). The recording paper feed command is a set of the following commands:

Printer reset

Printer setting

Bi-directional print correction

Bi-directional print

Raster skip

Printer reset

Print mode (normal or economy)

These commands are as follows. That is, the printer is initialized in response to the printer reset command. The printer setting command follows the contents of the FAX mode printer setting in the user registration contents. The bi-directional print correction command has a value inherent to the apparatus, and is registered not by a user but by a service man. The bi-directional print command follows a bi-directional print mode in a character print mode in the user registration contents. The raster skip command is a recording paper feed start command. The print mode command follows the print mode in the character print mode in the user registration contents.

Upon completion of generation of the recording paper feed command in the FAX unit 1 (22-3), the commands are simultaneously transferred to the printer unit 2 via the Centronics I/F 302 (22-4). Then, the FAX unit 1 waits for a paper feed request input from the printer unit 2 (22-5). The printer unit 2, which received the recording paper feed command, analyzes and executes the commands in turn. Upon analysis of the last raster skip command in the received command, the printer unit 2 issues a paper feed request to the FAX unit 1. Upon reception of the paper feed request (22-5), the FAX unit 1 causes the motor 111 to start the paper feed operation (22-6), and ends the paper feed operation when a recording paper sheet is fed to the position of the PE sensor 206 (22-7). The following position alignment operation of a recording paper sheet is entrusted to the printer unit 2. The printer unit 2 aligns the position of the recording paper sheet in accordance with a predetermined alignment amount.

The recording paper discharge process after the image print operation will be described below with reference to FIG. 32.

A process from when the FAX unit 1 generates a recording paper discharge command according to the user registration contents and transfers it to the printer unit 2 until a recording paper sheet is discharged is the recording paper discharge process.

The control waits until all the record line buffers become empty. Thereafter, a recording paper discharge command is generated (23-1). The recording paper discharge command is a set of the following commands.

Paper discharge

Printer setting

Printer reset

These commands are as follows. A paper discharge operation is started in response to the paper discharge command. The printer setting command follows the contents of the printer mode printer setting in the user registration contents. The printer is initialized in response to the printer reset command.

Upon completion of generation of the recording paper discharge command in the FAX unit 1 (23-1), the commands are simultaneously transferred to the printer unit 2 via the Centronics I/F 302 (23-2). The FAX unit 1 then waits for the end of the paper discharge operation. The printer unit 2, which received the recording paper discharge command, analyzes and executes the commands in turn. Upon analysis of the paper discharge command in the received command, the printer unit 2 executes the paper discharge operation. Upon completion of the paper discharge operation, the printer unit 2 sets the printer in accordance with the printer setting command to prepare for transfer to the printer mode. When the printer unit 2 is set in an idle state, the recording paper discharge operation ends (23-3).

The recording paper discharge process after the character code print operation will be described below with reference to FIG. 32.

A process from when the FAX unit 1 generates a recording paper discharge command according to the user registration contents and transfers it to the printer unit 2 until a recording paper sheet is discharged is the recording paper discharge process.

First, a recording paper discharge command is generated (23-1). The recording paper discharge command is a set of the following commands.

Paper discharge

Printer setting

Printer reset

These commands are as follows. A paper discharge operation is started in response to the paper discharge command. The printer setting command follows the contents of the printer mode printer setting in the user registration contents. The printer is initialized in response to the printer reset command.

Upon completion of generation of the recording paper discharge command in the FAX unit 1 (23-1), the commands are simultaneously transferred to the printer unit 2 via the Centronics I/F 302 (23-2). The FAX unit 1 then waits for the end of the paper discharge operation. The printer unit 2, which received the recording paper discharge command, analyzes and executes the commands in turn. Upon analysis of the paper discharge command in the received command, the printer unit 2 executes the paper discharge operation. Upon completion of the paper discharge operation, the printer unit 2 sets the printer in accordance with the printer setting command to prepare for transfer to the printer mode. When the printer unit 2 is set in an idle state, the recording paper discharge operation ends (23-3).

The printer setting process in step 16-2-1 in FIG. 23, which frequently appears in the above-mentioned description of the operations, will be described in detail below.

The printer setting process is an initial setting process for setting the printer unit 2 of this FAX apparatus in an initial state suitable for the operation mode. With this process, various functions of the printer unit 2 such as the size of a recording paper sheet, the kind of a character, and the kind of a type face are initially set. The various functions set initially are preset by an operator in correspondence with the function of an external device, e.g., a personal computer. Furthermore, the various functions can be modified in correspondence with a change in device and improvement in functions. Therefore, by this printer setting process, the various functions of the printer unit 2 are initially set suitable for the operation mode.

In the FAX apparatus of this embodiment, a printer setting operation for the printer mode corresponding to a setting place (e.g., a country, or an area) is executed in the FAX mode. On the other hand, in the printer mode, a printer setting operation for the printer mode which is selected by a user corresponding to the functions of connected external devices is executed.

The printer setting process is executed by activating the printer setting request when the recording operation is abnormally terminated, as shown in FIGS. 17A, 17B and 27, or when the user registration contents associated with the printer unit 2 are changed, as shown in FIGS. 10A to 10C. The reasons for the necessity of the printer setting process are as follows. In the FAX apparatus with the printer mode function, the printer unit 2 must cope with the printer mode independently of its set timings. For this reason, the internal printer setting contents in the printer unit 2 must always be those for the printer mode.

Thus, when the recording operation normally ends, the printer setting contents for the FAX mode are changed to those for the printer mode immediately before the end of the recording operation. Therefore, when the recording operation normally ends, the printer setting process need not be executed. However, when the recording operation is abnormally terminated, or when the printer setting contents are changed by the user registration operation, the internal printer setting contents in the printer unit are not correct contents for the printer mode, thus requiring the printer setting process.

FIG. 33 shows the printer setting process.

The printer setting request is always monitored at 200-msec intervals (24-1). When the printer setting request is activated, it is checked if the printer is ready (24-2) and if a remaining paper sheet is absent (24-3). If Y in both steps 24-2 and 24-3, a record semaphore is obtained (24-4). If the record semaphore can be obtained, since the recovery operation is not required at that time, the auto-recovery inhibit signal line=YES is set (24-5), and thereafter, the soft power-ON process is executed (24-6). Thereafter, the setting contents are transferred to the printer 2 using the printer setting command (24-7). Subsequently, the soft power-OFF process is executed (24-8), the printer setting request is deactivated (24-9), and the record semaphore is released (24-10), thus ending the printer setting process.

The interrupt process of recording in FIG. 22 will be described in detail below with reference to FIG. 34.

In the FAX mode, the FAX unit 1 executes the interrupt process of recording for transferring data in the record line buffer to the printer unit 2 in the 5-msec timer interrupts.

If the Centronics I/F 302 is free (25-1), the transferred record line buffer is released, and the next full record line buffer is acquired (25-2). When the reading operation or the received image record process is delayed and the next full record line buffer cannot be acquired (25-3), the interrupt process of recording ends. However, when the next record line buffer is acquired (25-3), control commands are added to before and after the next record line buffer which stores only print data (25-4) to obtain data in the FAX image command system. The FAX image command data begin to be transferred to the printer unit 2 via the Centronics I/F 302 (start DMA) (25-5), thus ending the interrupt process of recording. The printer unit 2 receives the FAX image command data, develops only image data on the raster buffer and the printer buffer, and prints the developed data.

The interrupt process of detection of a remaining ink amount shown in FIG. 22 will be described in detail below.

The remaining ink amount detect process includes two detection steps, i.e., ink detection and color recording paper detection. Only when “OK” is determined in both of the two steps, it is determined that the remaining ink amount detection result is “OK”.

The ink detection uses the remaining ink amount detection result signal line, and the color recording paper detection uses the color recording paper signal line. Both the signal lines return effective results only when the remaining ink amount detection output signal line is in an “output” state.

The remaining ink amount detect process includes two different process methods. One method is a divided intermediate page process executed when the length of received print data is larger than that of a recording paper sheet, and a divided print operation is performed, as shown in FIG. 35A. The other method is a process when a divided final page in the divided print operation is to be printed or when the length of received print data is shorter than that of a recording paper sheet, as shown in FIG. 35B. A major difference between these two processes is as follows. That is, in the divided intermediate page process, the process is terminated when the ink status (which is set in the interrupt process of detection of a remaining ink amount) and the color paper status are “OK”. Contrary to this, in the divided final page process, the ink status and color status are kept monitored until the idle signal line of the printer unit 2 indicates an “idle” state.

In this connection, in the ink detection, it is determined if an ink is ejected. More specifically, the remaining ink amount detect mark (footer mark) recorded on the tail edge portion of a recording paper sheet is detected (black is detected by the photosensor).

On the other hand, in the color recording paper detection, color recording paper is detected (white is detected by the photosensor) to determine whether or not black of the remaining ink amount detect mark is effective.

The operation of the FAX unit 1 associated with the remaining ink amount detect process will be described below with reference to FIG. 36.

The FAX unit 1 monitors the remaining ink amount detection output (27-2) in 5-msec timer interrupts (27-1). If the state of the remaining ink amount detection output is changed to “presence”, it is checked if any remaining recording paper sheet is present (27-3). If a remaining recording paper sheet is present, a recording paper jam is determined (27-4). If no remaining recording paper sheet is present, the remaining ink amount detection result is checked (27-5). If the remaining ink amount detection result indicates “NG”, the remaining ink amount detection status is set to be “NG”. On the other hand, if the remaining ink amount detection result indicates “OK”, color recording paper is detected. If the detection result of the color recording paper indicates “NG” (the recording paper sheet is color paper), the color recording paper status is set to be “NG” (27-6). On the other hand, if the detection result of the color recording paper indicates “OK” (the recording paper sheet is white paper) (27-7), it is determined that the print operation on the page of interest has normally ended, and the timer interrupt process is normally terminated.

The operation of the printer unit 2 associated with remaining ink amount detection will be described below with reference to FIG. 37.

In the paper feed process in the received image print mode, a footer print command is received from the FAX unit 1 (28-1-1). Footer character codes in the footer print command are stored in the footer buffer. After the footer print command is processed, a received image print operation is executed in accordance with a FAX image command received from the FAX unit 1. After the print operation is performed by N scans or more (a variable N included in the footer print command) (28-1-2), detection of the tail edge of a recording paper sheet is started (28-1-3). When the tail edge of the recording paper sheet is detected by the PE sensor 206, a remaining ink amount detect process shown in FIGS. 38A and 38B is executed.

In the remaining ink amount detect process, it is checked if the print operation of the current page is normally performed in an ink presence state, and the following process is performed. The recording paper sheet is fed to a position where the footer character codes are to be printed. The footer character codes stored in the footer buffer are printed. If the printed remaining ink amount detection mark is not detected by the footer sensor 207, the remaining ink amount detection result=NG is returned to the FAX unit 1. On the other hand, if the remaining ink amount detection mark is detected by the footer sensor 207, the recording paper sheet is fed, and it is detected if the recording paper sheet is color paper. If it is determined that the recording paper sheet is color paper, the remaining ink amount detection result=NG is returned to the FAX unit. Upon completion of all the detect processes described above, the remaining ink amount detection output=OK is set to inform a message indicating this to the FAX unit 1, thus ending the remaining ink amount detect process.

Upon completion of the remaining ink amount detect process, the first page is discharged, and if print data of the next page is received (28-1-8), the second page is fed (28-1-7) to continue the print operation. If the print data received from the FAX unit 1 ends (28-1-6) before the tail edge of a recording paper sheet is detected (28-1-5), the remaining ink amount detect process is immediately executed. Thereafter, the recording paper sheet is discharged (28-1-7), and the printer unit is transferred to an idle state.

When the remaining ink amount detection status indicates “NG” or the color recording paper status indicates “NG”, since the print operation of the current page may not be normally performed, the received image data of the current and subsequent pages are stored in the image memory.

The footer detection operation for remaining ink amount detection will be described in detail below with reference to FIGS. 38A and 38B.

In FIG. 37, when the tail edge of the recording paper sheet is detected (28-1-3, 28-1-5) or when the print operation ends (28-1-6), the paper sheet is fed to the footer print position (28-2-1).

Furthermore, the character codes in the footer buffer are developed to dot patterns using the ROM 202, and the dot pattern data are transferred to the printer buffer and are printed (28-2-2). When the footer is printed, the LED of the footer sensor 207 is turned on. Then, the paper sheet is fed to a position where the footer mark can be detected by the footer sensor (207) (28-2-4).

When the paper feed operation is stopped after the paper sheet is fed to a desired position, the number of times of retrial of ink detection is set to be “4” (28-2-5), and the footer mark is sensed 20 times using the footer sensor 207 at that position (28-2-6). The reason why the footer mark is sensed 20 times is to prevent a detection error due to the influence of external light or the influence of wind near a paper discharge unit (not shown) since the footer sensor 207 is arranged at the downstream side of the recording paper convey path, as shown in FIG. 6.

If black is detected less than 10 times as a result of 20 times of footer mark detection, it is determined that the detection of the footer mark is unsuccessful, and the number of times of retrial of ink detection is decremented by “1” to retry the ink detection. If the number of times of retrial does not reach “0” (28-2-7), the paper sheet is fed by a distance corresponding to 10 lines, and the footer mark is sensed 20 times again (28-2-6). The number of times of retrial of footer mark detection is set to be “4” and the number of lines of the paper feed operation is set to be “10” since the footer mark has a length corresponding to 40 lines.

When the above-mentioned footer mark detection operation is performed until the number of times of retrial of ink detection becomes “0”, the remaining ink amount detection result is set to be “NG” (28-2-9), the remaining ink amount detection output is set to be “ON”, and the footer LED is turned off (28-2-10). Furthermore, the recording paper sheet is discharged (28-2-11), and the control returns to step (28-1-8) in FIG. 37.

When black is detected 10 times or more as a result of 20 times of footer mark detection (28-2-6), it is determined that the footer mark detection is successful, and the number of times of retrial of color paper is set to be “20” (28-2-12). Then, the paper sheet is fed by 5 lines, and the footer sensor 207 senses if the recording paper sheet is color paper (28-2-14). If white is detected, the remaining ink amount detection result and color recording paper status are set to be “OK” (28-2-15). Furthermore, the remaining ink amount detection output is set to be “ON”, and the footer LED is turned off (28-2-10). The recording paper sheet is discharged (28-2-11), and the control returns to step (28-1-11) in FIG. 37.

On the other hand, if the footer sensor 207 detects black, the number of times of retrial of color paper detection is decremented by “1” (28-2-16), and the paper sheet is fed by 5 lines (28-2-13). This operation is repeated 20 times.

When white cannot be detected during 20 times of detection, it is determined that the recording paper sheet is color paper, and the color recording paper status is set to be “NG” (28-2-17). Then, the remaining ink amount detection output is set to be “ON”, and the footer LED is turned off (28-2-10). The recording paper sheet is discharged (28-2-11), and the control returns to step (28-1-8) in FIG. 37.

The feed amount (5 lines) of the paper sheet after the footer mark detection is smaller than the feed amount (10 lines) before the footer mark detection for the following reason.

More specifically, since the footer mark is printed at a position near the tail edge of the paper sheet, if a large paper feed amount is set, a white portion cannot be detected if the white portion after the footer mark is printed is small. In order to prevent this, a small paper feed amount is set.

As has been described above, according to the FAX apparatus of this embodiment, the printer unit of the FAX apparatus which comprises the printer unit and the FAX unit is used as the output terminal of an external device such as a computer, a LAN, or the like. With this arrangement, even if the FAX apparatus and the external device use different command systems, emulation modes, character fonts, and the like, the printer unit can be used as the output terminal of the external device.

When the Centronics output select switch is connected to an external device through an external Centronics connector by depressing, e.g., a printer key, the printer unit can be prevented from being operated using an emulation mode, character fonts, and the like set for the FAX apparatus without changing the printer unit in the external device setting. The same operation is also executed when this apparatus is used as a FAX apparatus after used as a printer.

When the printer unit is to be used as the output terminal of a FAX apparatus or as the output terminal of an external device, the operation of changing the printer setting contents can be easily executed by a user each time.

When the printer unit cannot be used as the output terminal of an external device due to various factors, even if the printer key is depressed, the operation mode is not transferred to the printer mode. Thus, an abnormal state of the printer unit can be immediately informed to a user.

As has been described above, according to the present invention, image recording parameters based on received image data and character recording parameters based on input character code data are set respectively. Respective recording operations are executed in accordance with the corresponding set parameters. With this operation, an image recording operation and a character recording operation are properly executed in accordance with the suitable parameters. Furthermore, since an instruction of the image recording mode or character recording mode is validated or invalidated in accordance with a detected state of the image or character recording mode, modes can be reliably switched without any disadvantage caused by switching the modes.

Although the present invention has been described with respect to the arrangement of the preferred embodiment, the present invention is not limited to this arrangement of the embodiment, and various changes and modifications are deemed to lie within the scope of the appended claims. 

What is claimed is:
 1. An image printing apparatus comprising: reception means for receiving image data; input means for inputting character code data from an external device; instruction means for instructing an image printing mode based on the image data, and a character printing mode based on the character code data; printing means for printing an image based on the image data in accordance with instruction of the image printing mode, and a character based on the character code data in accordance with instruction of the character printing mode; setting means for selectively setting a first parameter for the image printing mode or a second parameter for the character printing mode; detection means for detecting a state of said printing means; and control means for determining whether to allow setting of the second parameter by said setting means as valid or whether to inhibit setting of the second parameter as invalid in accordance with the state detected by said detection means.
 2. An apparatus according to claim 1, wherein said control means determines the instruction of the character printing mode by said instruction means to be invalid during an image printing operation based on the image data printed by said printing means.
 3. An apparatus according to claim 1, wherein said control means determines the instruction of the character printing mode by said instruction means to be invalid when said printing means has an abnormality.
 4. An apparatus according to claim 1, wherein said control means determines the instruction of the image printing mode by said instruction means regardless of the state detected by said detection means.
 5. An apparatus according to claim 1, further comprising display means for displaying that said control means has determined that instruction of the character printing mode by said instruction means is valid.
 6. An image printing method comprising: a reception step of receiving image data; an input step of inputting character code data from an external device; an instruction step of instructing an image printing mode based on the image data, and a character printing mode based on the character code data; a printing step of printing an image based on the image data in accordance with instruction of the image printing mode, and a character based on the character code data in accordance with instruction of the character printing mode; a setting step of selectively setting a first parameter for the image printing mode or a second parameter for the character printing mode; a detection step of detecting a state in said printing step; and a control step of determining whether to allow setting of the second parameter in said setting step as valid or whether to inhibit setting of the second parameter as invalid in accordance with the state detected in said detection step.
 7. A method according to claim 6, wherein said control step determines the instruction of the character printing mode in the instruction step to be invalid during an image printing operation based on the image data in the printing step.
 8. A method according to claim 6, wherein said control step determines the instruction of the character printing mode in the instruction step to be invalid when an abnormality occurs in said printing step.
 9. A method according to claim 6, wherein said control step determines the instruction of the image printing mode in said instruction step regardless of the state detected in said detection step.
 10. An image printing apparatus comprising: reception means for receiving image data via a communication line; input means for inputting character code data from an external device via an interface; setting means for setting an image printing parameter based on the image data and a character printing parameter based on a kind of the character code data; printing means for printing an image based on the image data in accordance with the image printing parameter, and a character based on the character code data in accordance with the character, wherein said printing means performs a printing operation according to a printing command; and control means for issuing a printing command for causing said printing means to perform the printing operation, in a case of printing the image based on the image data received by said reception means, and for transferring to said printing means a printing command, received through said input means from the external device, for causing said printing means to perform the printing operation, in a case of printing the character based on the character data inputted through said input means, wherein said setting means sets at least one of different command systems as the character printing parameter.
 11. An apparatus according to claim 10, further comprising reading means for reading an original image, wherein said printing means prints the original image read by said reading means in accordance with the image printing parameter.
 12. An image printing method comprising: a reception step of receiving image data via a communication line; an input step of inputting character code data from an external device via an interface; a setting step of setting an image printing parameter based on the image data and a character printing parameter based on a kind of the character code data; a printing step of printing, using a printer, an image based on the image data in accordance with the image printing parameter, and a character based on the character code data in accordance with the character printing parameter; and a control step of issuing a printing command to control the printer, in a case of printing the image based on the image data received in said reception step, and for transferring to the printer a printing command received through said input step from the external device, in a case of printing the character, to control said printing step based on the character code data inputted through said input step, wherein said setting step sets at least one of different command systems as the character printing parameter.
 13. A method according to claim 12, further comprising a reading step of reading an original image, wherein said printing step prints the original image read by said reading means in accordance with the image printing parameter.
 14. A method according to claim 6, further comprising a display step of displaying that said control step has determined that instruction of the character printing mode in said instruction step is valid.
 15. An image processing apparatus comprising: a receiver, which receives data by a facsimile communication via a communication line; an inputter, which inputs data from an external device via an interface; a printer, which prints an image based on the data received by said receiver and the data inputted by said inputter; a switch, which switches between a facsimile mode for printing the image based on the data received by said receiver and a printer mode for printing the image based on the data inputted by said inputter; and a setter, which selectively sets a first printing parameter for the facsimile mode or a second printing parameter for the printer mode in accordance with a switching operation of said switch.
 16. An apparatus according to claim 15, further comprising a register, which registers a plurality of parameters, wherein said setter sets the first printing parameter and the second printing parameter among the plurality of parameters registered by said register.
 17. An apparatus according to claim 15, further comprising a controller, which controls the switching operation of said switcher in accordance with a status of said printer.
 18. An apparatus according to claim 15, further comprising a reader, which reads an image on a document and generates image data according to the read image, wherein said printer prints the image based on the image data from said reader in the facsimile mode.
 19. An image processing apparatus comprising: a receiver, which receives data by a facsimile communication via a communication line; an inputter, which inputs data from an external device via an interface; a printer, which prints an image based on the data received by said receiver and the data inputted by said inputter; a first setter, which sets a first parameter for printing an image based on the data received by said receiver by said printer; a second setter, which sets a second parameter for printing an image based on the data inputted by said inputter; and a third setter, which sets a third parameter indicating a type of command system of a command to be sent from the external device through said inputter.
 20. An apparatus according to claim 19, wherein the third parameter indicates a type of emulation mode for printing the image based on the data inputted by said inputter.
 21. An apparatus according to claim 19, wherein said receiver receives the data by a facsimile communication.
 22. An apparatus according to claim 19, further comprising a reader, which reads an image on a document and generates image data according to the read image, wherein said printer prints the image based on the image data from said reader according to the first parameter set by said first setter.
 23. An image processing apparatus comprising: a printer, which prints an image based on inputted data; a processing unit, which performs processing except for a printing operation; an inputter, which inputs data from an external device via an interface; and a controller, which issues a printing command to said printer in a case where the image based on the data processed by said processing unit is printed by said printer, and transfers the printing command sent from the external device through said inputter in a case where the image based on the data inputted from the external device through said inputter is printed by said printer.
 24. An apparatus according to claim 23, further comprising a receiver, which receives the data via a communication line, wherein said processing unit performs processing of the data received by said receiver.
 25. An apparatus according to claim 24, wherein said receiver receives the data by a facsimile communication.
 26. An apparatus according to claim 23, further comprising a reader, which reads an image on a document and generates image data according to the read image, wherein said processing unit performs processing of the image data from said reader.
 27. An apparatus according to claim 23, wherein the printing command sent from the external device and the printing command issued by said controller are based on a common command system.
 28. A program product embodying a computer-readable program for implementing an image printing method, the program comprising: code for a reception step of receiving image data via a communication line; code for an input step of inputting character code data from an external device via an interface; code for a setting step of setting an image printing parameter based on the image data, and a character printing parameter based on a kind of the character code data; code for a printing step of printing an image based on the image data in accordance with the image printing parameter, and a character based on the character code data in accordance with the character printing parameter; and code for a control step of issuing a printing command to control the printing step in a case of printing the image based on the image data received in said reception step, and for transferring a printing command received through the input step from the external device in a case of printing the character, to control said printing step, based on the character date inputted through the input step.
 29. A program product embodying a computer-readable program for implementing an image printing method, the program comprising: code for a reception step of receiving image data; code for an input step of inputting character code data from an external device; code for an instruction step of instructing an image printing mode based on the image data, and a character printing mode based on the character code data; code for a printing step of printing an image based on the image data in accordance with instruction of the image printing mode, and a character based on the character code data in accordance with instruction of the character printing mode; code for a setting step of selectively setting a first parameter for the image printing mode or a second parameter for the character printing mode; code for a detection step of detecting a state in the printing step; and code for a control step of determining whether to allow setting of the second parameter in the setting step as valid or whether to inhibit setting of the second parameter as invalid in accordance with the state detected in the detection step.
 30. An image processing method comprising: a reception step of receiving data by a facsimile communication via a communication line; an input step of inputting data from an external device via an interface; a print step of printing an image based on the data received in said reception step and the data inputted in said input step; a switch step of switching between a facsimile mode for printing the image based on the data received in said reception step and a printer mode for printing the image based on the data inputted in said input step; and a setting step of selectively setting a first printing parameter for the facsimile mode or a second printing parameter for the printer mode in accordance with a switching operation of said switch step.
 31. An image processing method comprising: a reception step of receiving data by a facsimile communication via a communication line; an input step of inputting data from an external device via an interface; a print step of printing an image based on the data received in said reception step and the data inputted in said input step; a first setting step of setting a first parameter for printing, in said print step, an image based on the data received in said reception step; a second setting step of setting a second parameter for printing an image based on the data inputted in said input step; and a third setting step of setting a third parameter indicating a type of command system of a command to be sent from the external device via said input step.
 32. An image processing method comprising: a print step of printing an image based on inputted data; a processing step of performing processing except for a printing operation; an input step of inputting data from an external device via an interface; and a control step of issuing a printing command to control said print step in a case where the image based on the data processed in said processing step is printed in said print step, and transferring the printing command sent from the external device via said input step in a case where the image based on the data inputted from the external device in said input step is printed in said print step.
 33. A program product embodying a computer-readable program for implementing an image processing method comprising: code for a reception step of receiving data by a facsimile communication via a communication line; code for an input step of inputting data from an external device via an interface; code for a print step of printing an image based on the data received in the reception step and the data inputted in the input step; code for a switch step of switching between a facsimile mode for printing the image based on the data received in the reception step and a printer mode for printing the image based on the data inputted in the input step; and code for a setting step of selectively setting a first printing parameter for the facsimile mode or a second printing parameter for the printer mode in accordance with a switching operation of the switch step.
 34. A program product embodying a computer-readable program for implementing an image processing method comprising: code for a reception step of receiving data by a facsimile communication via a communication line; code for an input step of inputting data from an external device via an interface; code for a print step of printing an image based on the data received in the reception step and the data inputted in the input step; code for a first setting step of setting a first parameter for printing, in the print step, an image based on the data received in the reception step; code for a second setting step of setting a second parameter for printing an image based on the data inputted in the input step; and code for a third setting step of setting a third parameter indicating a type of command system of a command to be sent from the external device via the input step.
 35. A program product embodying a computer-readable program for implementing an image processing method comprising: code for a print step of printing an image based on inputted data; code for a processing step of performing processing except for a printing operation; code for an input step of inputting data from an external device via an interface; and code for a control step of issuing a printing command to control the print step in a case where the image based on the data processed in the processing step is printed in the print step, and transferring the printing command sent from the external device via the input step in a case where the image based on the data inputted from the external device in the input step is printed in the print step. 